#define _CRT_ASECURE_NO_WARNINGS
#include"SeqList.h"
void SLTest1()
{
	SL s;
	SLInit(&s);
	SLpushfront(&s, 1);
	SLpushfront(&s, 2);
	SLpushfront(&s, 3);
	SLpushfront(&s, 4);
	SLPrint(&s);
	SLpopback(&s);
	SLPrint(&s);
	SLpopfront(&s);
	SLpopfront(&s);
	SLPrint(&s);
	SLDestroy(&s);
}
void SLTest2()
{
	SL s;
	SLInit(&s);
	SLpushback(&s, 1);
	SLpushback(&s, 2);
	SLpushback(&s, 3);
	SLpushback(&s, 4);
	printf("%d",SLFind(&s, 3));
}
void SLTest3()
{
	SL s;
	SLInit(&s);
	SLpushback(&s, 1);
	SLpushback(&s, 2);
	SLpushback(&s, 3);
	SLpushback(&s, 4);
	SLInsert(&s, 2, 10);
	SLPrint(&s);
	SLErase(&s, 2);
	SLPrint(&s);
}
int main()
{
	//SLTest1();
	//SLTest2();
	SLTest3();
	return 0;
}